import request from '@/utils/request'

// 查询组工序列表
export function listMark(query) {
  return request({
    url: '/mes/pro/groupMark/list',
    method: 'get',
    params: query
  })
}

// 查询自定义报工设置详细
export function getMark(markId) {
  return request({
    url: '/mes/pro/groupMark/' + markId,
    method: 'get'
  })
}

// 新增自定义报工设置
export function addMark(data) {
  return request({
    url: '/mes/pro/groupMark',
    method: 'post',
    data: data
  })
}

// 修改自定义报工设置
export function updateMark(data) {
  return request({
    url: '/mes/pro/groupMark',
    method: 'put',
    data: data
  })
}

// 删除自定义报工设置
export function delMark(markId) {
  return request({
    url: '/mes/pro/groupMark/' + markId,
    method: 'delete'
  })
}
// 查看自定义报工设置
export function customizeView(markId) {
  return request({
    url: '/mes/pro/groupMark/findByMarkId',
    method: 'get',
    params: markId
  })
}
